-- GENERATED SPELL FOR [Wild Elekk] --


function spell0_18334(pUnit, Event) --@Gore,n/a--
pUnit:FullCastSpellOnTarget(32019,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_18334', 15000, 1)
end

function Sorts_18334(pUnit, Event)
local choix_sorts_18334 = math.random(0, 0)
if choix_sorts_18334 == 0 then
pUnit:RegisterEvent('spell0_18334', 1, 1)
end
end

function mob18334_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_18334', math.random(1500, 3000), 1)
end

function mob18334_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob18334_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob18334_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(18334, 1, 'mob18334_Action')
RegisterUnitEvent(18334, 2, 'mob18334_Leave')
RegisterUnitEvent(18334, 3, 'mob18334_Kill')
RegisterUnitEvent(18334, 4, 'mob18334_Die')
